﻿using System;
using System.Runtime.InteropServices;

namespace ChangePlaybackDevice.BC
{
	/// <summary>
	/// Win32 API Wrapper.
	/// </summary>
	public static class Win32Wrapper
	{
		public const int WM_LBUTTONDOWN = 0x201;
		public const int WM_LBUTTONUP = 0x202;

		[DllImport("user32.dll", SetLastError = true)]
		public static extern IntPtr FindWindowEx(IntPtr hwndParent, IntPtr hwndChildAfter, string className, string windowTitle);

		[DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Unicode)]
		public static extern bool PostMessage(IntPtr hWnd, Int32 Msg, Int32 wParam, Int32 lParam);
	}
}
